﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="temp01._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<script type="text/javascript">
    function checkuser() { alert("OK"); }
</script>
<body>
    <form id="form1" runat="server">
    <div>
    <p>Enter a number from 1 to 100:
    <asp:TextBox id="tbox1" runat="server" />
    <br /><br />
    <asp:Button ID="Button1" Text="Submit" runat="server" />
        <p>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                onclientclick="return checkuser ();" Text="GetIP" />
    <p>
    <asp:RangeValidator ID="RangeValidator1"
    ControlToValidate="tbox1"
    MinimumValue="1"
    MaximumValue="100"
    Type="Integer"
    Text="The value must be from 1 to 100!"
    runat="server" />
    </p>
    </div>
    </form>
</body>
</html>
